﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for BaseTemplate
/// </summary>
public class BaseTemplate : Acms.AcmsControls.TemplatePage
{
    public BaseTemplate()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    public BaseMasterPage AcmsMasterPage
    {
        get
        {
            var tmp = this.Master as BaseMasterPage;
            if (tmp == null)
                throw new ApplicationException("This Template does not use a Master Page that inherits from BaseMasterPage as is required");
            return tmp;
        }
    }

}
